package ig.metrica.ui.modelo;

import java.awt.BorderLayout;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;

import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

import ig.metrica.ui.PantallaSevinproPanel;
import javax.swing.JComboBox;

public class PantallaDefinicionBandasRiesgo extends PantallaSevinproPanel  {
 
	private JTextField txtBanda1;
	private JTextField txtBanda2;
    //private JlEstadoModeo dmodelo;

    private JComboBox[] comboBoxsColumns=new JComboBox[1];

    @Override
    public JComboBox[] getComboBoxsColumnsTable1() {
        return comboBoxsColumns;
    }

    private JComboBox[] comboBoxsColumnsTable2=new JComboBox[1];
    @Override
    public JComboBox[] getComboBoxsColumnsTable2() {
        return comboBoxsColumnsTable2;
    }


	public PantallaDefinicionBandasRiesgo(ThreadModelos threadModelos){
            this.threadModelos=threadModelos;
            JPanel panelSuperior;
		
		setLayout( new BorderLayout() );
		
		//int gridx, int gridy, int gridwidth, int gridheight, double weightx, double weighty, int anchor, int fill, Insets insets, int ipadx, int ipady
		
		add( panelSuperior = new JPanel(), BorderLayout.NORTH );
			panelSuperior.setLayout( new GridBagLayout() );
			panelSuperior.setBorder( BorderFactory.createEmptyBorder(10, 10, 0, 10) );
			//----------
			panelSuperior.add( new JLabel(), new GridBagConstraints(0, 0, 1, 1, 0.4, 0.1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0) );
			panelSuperior.add( new JLabel("Configuracion de Bandas Principal"), new GridBagConstraints(1, 0, 1, 1, 1, 0.1, GridBagConstraints.WEST, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0) );
			panelSuperior.add( txtBanda1 = new JTextField(), new GridBagConstraints(1, 1, 1, 1, 1, 0.1, GridBagConstraints.WEST, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0) );
			panelSuperior.add( new JLabel("   "), new GridBagConstraints(1, 2, 1, 1, 1, 0.1, GridBagConstraints.WEST, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0) );
			panelSuperior.add( new JLabel("Configuracion de Bandas Auxiliar"), new GridBagConstraints(1, 3, 1, 1, 1, 0.1, GridBagConstraints.WEST, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0) );
			panelSuperior.add( txtBanda2 = new JTextField(), new GridBagConstraints(1, 4, 1, 1, 1, 0.1, GridBagConstraints.WEST, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0) );
			panelSuperior.add( new JLabel(), new GridBagConstraints(2, 0, 1, 1, 0.4, 0.1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0) );
			
	}
		
	public String getTitulo() {
		return "Configuracion Bandas de Riesgo";
	}

	public void setModificable(boolean b) {
		txtBanda1.setEnabled(b);
		txtBanda2.setEnabled(b);
	}

	public void limpiarCampos() throws Exception {
		txtBanda1.setText("");
		txtBanda2.setText("");
	}
	
	public String getBandas1(){		
		return txtBanda1.getText();
	}
	
	public String getBandas2(){
		return txtBanda2.getText();
	}
	
	public void setBandas1(String texto){
		txtBanda1.setText(texto);
	}
	
	public void setBandas2(String texto){
		txtBanda2.setText(texto);
	}

    public void salir() throws Exception {
    }
    public javax.swing.table.AbstractTableModel getClonModelTable_1() throws CloneNotSupportedException{
        return null;
    }

    public javax.swing.table.AbstractTableModel getClonModelTable_2() throws CloneNotSupportedException{
        return null;
    }

    public javax.swing.table.AbstractTableModel getClonModelTable_3() throws CloneNotSupportedException{
        return null;
    }
	
}
